package com.sc.entity;

import com.mybatisflex.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 授课阶段表 实体类。
 *
 * @author JoeZhou
 * @since 2024-09-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "sms_course_stages", schema = "study_club")
public class CourseStages implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 学时
     */
    private Integer hours;

    /**
     * 涵盖技术点
     */
    private String technicalPoints;

    /**
     * 详细介绍
     */
    private String description;

    /**
     * 顺序
     */
    private Integer sort;

    /**
     * 方向ID
     */
    private Long directionId;

    @RelationManyToOne(selfField = "directionId", targetField = "id")
    private TrainingDirections direction;

    /**
     * 状态
     */
    private Integer status;
    @Column(isLogicDelete = true)
    private Integer isDelete;

    /**
     * 备注
     */
    private String info;

    /**
     * 创建时间
     */
    private LocalDateTime created;

    /**
     * 更新时间
     */
    private LocalDateTime updated;

    /**
     * 版本
     */
    @Column(version = true)
    private Integer version;

}
